package com.example.design.strategy.cooking;

/**
 * @Description 策略模式测试类
 * @ClassName StrategyTest
 * @Author Yumuhui
 * @Date 2020/5/15 0:56
 * @Version 1.0.0
 */
public class StrategyTest {

    public static void main(String[] args) {
        Kitchen kitchen = new Kitchen();
        kitchen.setStrategy(new SteamedFish());
        kitchen.cooking();

        kitchen.setStrategy(new BraisedFish());
        kitchen.cooking();
    }
}
